//
//  UIView+Add.h
//  TsingKe
//
//  Created by 代佳宏 on 2020/9/12.
//  Copyright © 2020 DaiJIaHong. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIView (Add)

+ (instancetype)initFromNib;

///添加高斯模糊效果
- (void)addBlurEffect;
///添加阴影
- (void)addShadow;
///水平渐变色
- (void)gradientHorizontalWithFromColor:(UIColor *)fromColor withEndColor:(UIColor *)endColor;
///垂直渐变色
- (void)gradientVerticalWithFromColor:(UIColor *)fromColor withEndColor:(UIColor *)endColor;
///自定义渐变色
- (void)gradientCustomWithFromColor:(UIColor *)fromColor andStartPoint:(CGPoint)startPoint withEndColor:(UIColor *)endColor andEndPoint:(CGPoint)endPoint;

+ (id)loadCurrentViewFromNib;

/// 截图
- (UIImage *)snapshotImageWithAfterScreenUpdates:(BOOL)afterUpdates;
@end

NS_ASSUME_NONNULL_END
